package com.lzk.feignclients;

import com.lzk.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "user-server",fallbackFactory = UserFeignClientFallbackFactory.class)
@RequestMapping("user")
public interface UserFeignClient {

    @RequestMapping("getById/{id}")
    public User getById(@PathVariable("id") Integer id);

}
